import request from '@/utils/request'

// 查询客户每日收益列表
export function listCrmCompanyIncome(query) {
  return request({
    url: '/net/crmCompanyIncome/list',
    method: 'get',
    params: query
  })
}

// 查询客户每日收益详细
export function getCrmCompanyIncome(id) {
  return request({
    url: '/net/crmCompanyIncome/' + id,
    method: 'get'
  })
}

// 新增客户每日收益
export function addCrmCompanyIncome(data) {
  return request({
    url: '/net/crmCompanyIncome',
    method: 'post',
    data: data
  })
}

// 修改客户每日收益
export function updateCrmCompanyIncome(data) {
  return request({
    url: '/net/crmCompanyIncome',
    method: 'put',
    data: data
  })
}

// 删除客户每日收益
export function delCrmCompanyIncome(id) {
  return request({
    url: '/net/crmCompanyIncome/' + id,
    method: 'delete'
  })
}
